package com.xbongbong.pro.statistic.model;

import com.xbongbong.paas.toolbox.wrap.IModel;
import com.xbongbong.pro.domain.entity.DataSetConfigEntity;

import java.util.List;
import java.util.Map;


/**
 * @author bomfish
 */
public interface DataSetConfigModel extends IModel<DataSetConfigEntity> {
   Integer insert(DataSetConfigEntity entity);

   void insertBatch(List<DataSetConfigEntity> list);

   List<DataSetConfigEntity> findEntitys(Map<String, Object> param);

   Integer getEntitysCount(Map<String, Object> param);

   Integer update(DataSetConfigEntity entity);

   DataSetConfigEntity getByKey(Long key, String corpid);

   /**
    * 通过数据集id获取配置
    * @param setId 数据集id
    * @param corpid
    * @return com.xbongbong.pro.domain.entity.DataSetConfigEntity
    * @author zcp
    * @since v1.0
    * @version v1.0
    */
   DataSetConfigEntity getByDataSetId(Long setId, String corpid);

   List findEntitysWithoutSub(Map<String, Object> param);
}
